package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Title:
 * @BelongProjecet month0617
 * @BelongPackage com.bwie.pojo
 * @Description:
 * @Copyright 研发一部
 * @Author: Mr.yan
 * @Date: 2024/6/17 9:18
 * @Version V1.0
 */
@Data
@TableName("tb_order")
public class TbOrder implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String orderNum;
    private Integer enquiryId;
    private Integer deliverId;
    private Integer userId;
    private Integer goodsId;
    private Integer orderStatus;
    private Integer goodsNumber;
    private String  goodsDetails;
    private String  orderDetails;
    private String freeHtml;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date arriveTime;
    @TableField(exist = false)
    private String enquiryName;
    @TableField(exist = false)
    private String deliverName;
    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String goodsNum;
    @TableField(exist = false)
    private String goodsName;

    @TableField(exist = false)
    private List<TbGoods> goods;
}
